package com.mspbots.core.script.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mspbots.core.DefaultBaseService;
import com.mspbots.core.script.model.TenantScript;

import java.util.List;
import java.util.Map;


public interface TenantScriptService extends DefaultBaseService<TenantScript> {

    Object updateTenantScript(String systemScript, Long tenantId);


    Object saveOrUpdateTenantScript(TenantScript entity);


    IPage<TenantScript> selectBots(Page<TenantScript> page, TenantScript query);

    Map<String, Object> getCustomScript(Long tenantId);

    List<TenantScript> listAndSystemInfo(TenantScript query);

    Boolean closeReportAllSwitch(Long tenantId, Boolean reportswitch);

    List<TenantScript> findScope();

    TenantScript selectEscalation(Long tenantId);
}
